package xjtu.se.articlecommunity.common.dao;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import xjtu.se.articlecommunity.common.dto.UserDto;

public interface CommonDao {

    @Select("select u_id,u_name,u_passwd,u_avatar,u_role from t_user where u_id = #{u_key} or u_mail=#{u_key} or u_tel=#{u_key}")
    UserDto findCurrentuser(@Param("u_key") String u_id);

}
